//
//  ComboBoxDelegate.m
//  ImageReplacer
//
//  Created by Tyler Powell on 5/13/12.
//  Copyright (c) 2012 Georgia Institute of Technology. All rights reserved.
//

#import "ComboBoxDelegate.h"

@implementation ComboBoxDelegate
-(void) comboBoxSelectionDidChange:(NSNotification *)notification
{
    NSComboBox* comboBox = [notification object];
    //NSLog(@"Tag: %@",comboBox);
    NSInteger index = [comboBox indexOfSelectedItem];
    if (index>=0) {
        [[comboBox writer] replaceOptionAtIndex:0 withOption:[[[comboBox writer] launchers] objectAtIndex:index]];
    }
}
@end
